package com.bootdo.app.common.utils;
//
//import java.util.Map;
//import java.util.Random;
//import java.util.Set;
//import java.util.SortedMap;
//import java.util.TreeMap;
//
//import com.alibaba.fastjson.JSON;
//
//
//
//
///**
// * 微信调起支付类
// *
// * @author Sunlight
// *
// */
//public class WXPay {
//	public static String createPackageValue(String appid, String appKey, String prepay_id)  {
//		SortedMap<String, String> nativeObj = new TreeMap<String, String>();
//		nativeObj.put("appId", appid);
//		nativeObj.put("timeStamp", OrderUtil.GetTimestamp());
//		Random random = new Random();
//		String randomStr = MD5.GetMD5String(String.valueOf(random.nextInt(10000)));
//		nativeObj.put("nonceStr", MD5Util.MD5Encode(randomStr, "utf-8").toLowerCase());
//		nativeObj.put("package", "prepay_id=" + prepay_id);
//		nativeObj.put("signType", "MD5");
//		nativeObj.put("paySign", createSign(nativeObj, appKey));
//
//		System.out.println(JSON.toJSONString(nativeObj));
//
//		return JSON.toJSONString(nativeObj);
//	}
//
//	/**
//	 * 创建md5摘要,规则是:按参数名称a-z排序,遇到空值的参数不参加签名。
//	 */
//	public static String createSign(SortedMap<String, String> packageParams, String AppKey) {
//		StringBuffer sb = new StringBuffer();
//		Set es = packageParams.entrySet();
//		Iterator it = es.iterator();
//		while (it.hasNext()) {
//			Map.Entry entry = (Map.Entry) it.next();
//			String k = (String) entry.getKey();
//			String v = (String) entry.getValue();
//			if (null != v && !"".equals(v) && !"sign".equals(k) && !"key".equals(k)) {
//				sb.append(k + "=" + v + "&");
//			}
//		}
//		sb.append("key=" + AppKey);
//		String sign = MD5Util.MD5Encode(sb.toString(), "UTF-8").toUpperCase();
//		return sign;
//	}
//}


/**
 * 美团h5
 *
 * @author Sunlight
 *
 */
public class MtUrlUtils {
        //美团生鲜
        public static final String mtsx = "https://i.meituan.com/awp/hfe/block/652c4b9d8a2425a98ca5/92207/index.html";
        //美团外卖
        public static final String mtwm = "https://i.meituan.com/awp/hfe/block/a945391288b790d558b7/78716/index.html";
        //饿了么生鲜
        public static final String elmsx = "https://chengxh.test.utools.club/app/mini_program/3ccg/wxNotify";
        //饿了么外卖
        public static final String elmwm = "MD5";
//        public static final String appkey="c85d5261e1b8b214d0706c9334a01c51";
        public static final String appkey="62195e1ab9c6287c5b66fff4951bce85";
        public static final String head="https://runion.meituan.com/url";
        
        public static final String head2= "https://w.dianping.com/cube/evoke/increase/meituan.html?lch=s:waimai:1:";
        
        public static final String head2xcx= "/index/pages/h5/h5?weburl=";

        

}

